
package cn.bluethink.zentao.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import cn.bluethink.zentao.model.ZtObject;
import cn.bluethink.zentao.model.ZtUser;


/**
 * @title 通用性任务
 * @Copyright 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.1
 *
 * @note 修订历史： （1）liuxn于2018年8月14日构建初始版本0.1
 */
public class ZtTask extends ZtObject  {

    /**
     * 任务描述
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String content = null;

    /**
     * 任务标签
     */
	@JsonInclude(JsonInclude.Include.NON_NULL)
    private String tags = null;

	/**
	 * 任务编码
	 */
	private Integer taskNum;
	
    /**
     * 优先级
     */
	@JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer priority;

    /**
     * 任务状态（未开始，进行中，已延误，已完成）
     */
    private Integer status;

    /**
     * 任务截止的时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date etime;

    /**
     * 任务发布者
     */
	@JsonInclude(JsonInclude.Include.NON_NULL)
    private ZtUser cuser = null;
    
    /**
     * 任务被指派者
     */
    private ZtUser douser;

    /**
     * 任务备注
     */
    private String remark;
    
    /**
     * 任务完成时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date ftime;

    /**
     * @since 1.0.0
     * @roseuid 5B6D1B1402FC
     */
    public ZtTask() {

    }

    public ZtTask(Long tid, Integer taskNum, String name, String content) {
        super(tid, name);
        this.taskNum = taskNum;
        this.content = content;
    }
   

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Date getEtime() {
        return etime;
    }

    public void setEtime(Date etime) {
        this.etime = etime;
    }

    public ZtUser getCuser() {
        return cuser;
    }

    public void setCuser(ZtUser cuser) {
        this.cuser = cuser;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getFtime() {
        return ftime;
    }

    public void setFtime(Date ftime) {
        this.ftime = ftime;
    }

	public Integer getTaskNum() {
		return taskNum;
	}

	public void setTaskNum(Integer taskNum) {
		this.taskNum = taskNum;
	}

	public ZtUser getDouser() {
		return douser;
	}

	public void setDouser(ZtUser douser) {
		this.douser = douser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
   
}
